/****** Object:  Table [dbo].[billingAddress]    ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[billingAddress](
	[billingAddressId] [int] IDENTITY(1,1) NOT NULL,
	[cardpaymentId] [int] NULL,
	[addressLine1] [nchar](50) NULL,
	[addressLine2] [nchar](50) NULL,
	[addressLine3] [nchar](50) NULL,
	[country] [nchar](10) NULL,
	[city] [nchar](10) NULL,
	[postalCode] [nchar](10) NULL,
 CONSTRAINT [PK_billingAddress] PRIMARY KEY CLUSTERED 
(
	[billingAddressId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[billingAddress]  WITH CHECK ADD  CONSTRAINT [FK_billingAddress_cardPayment] FOREIGN KEY([cardpaymentId])
REFERENCES [dbo].[cardPayment] ([cardpaymentId])
GO

ALTER TABLE [dbo].[billingAddress] CHECK CONSTRAINT [FK_billingAddress_cardPayment]
GO

